let fs=require('fs')
let data=require('./data.json')
function home(){
    res.writeHead(200,{'content-type':"text/html"})
    fs.createReadStream(__dirname+"/home.html","utf8").pipe(res)
}
function user(){
    res.writeHead(200,{'content-type':"application/json"})
    res.end(JSON.stringify(data))

}
module.exports={
    home,user
}